package com.levy.contronller.otherExtends.colorizeOldPhoto;

import cn.hutool.http.HttpUtil;

/**
 * Created by levy on 2019/5/13.
 *
 *
 *  老照片上色请求demo
 *  充值地址： https://colorize.cc/account
 *  账号：guoliwei139@139.com
 */
public class ColorizeOldPhoto {

    private static String apiToken = "d07eedeff9e6d0dbcefef2e58789c906";

    //创建转换任务
    private static String createJobUrl = "https://colorize.cc/worker/newjob?token=" + apiToken + "&file=";

    //获取转换状态
    private static String getStatusUrl = "https://colorize.cc/worker/jobstatus?token=" + apiToken + "&jobid=";


    public static void main(String[] args) {

        String photoUrl_1 = "http://colorize-old-photo.oss-cn-shenzhen.aliyuncs.com/test_1/18.jpg?Expires=1557722889&OSSAccessKeyId=TMP.AgHDK3D9sPPdqPJ5TgKnnWXyCA7n60Ep_hX-3FrusgZlMiW6xuK4UAlnfGPsADAtAhQofj-5b1F83hdtN3aDyX0eG1tLrQIVAJq3cYEFZKoKUCE5K8Ttrl57DBZ5&Signature=y1udieZeH4lcg2LJ12V8NRi36cc%3D";
        String s = HttpUtil.get(createJobUrl + photoUrl_1);
        System.out.println(s);






    }

}
